package com.patternsbox;

public abstract class ActionTemplate {

	public void execute() {
		StringBuilder message = new StringBuilder();
		message.append("------------");
		message.append(" Running : " + this.getClass().getSimpleName()
				+ ".execute() ");
		while (message.length() < 100)
			message.append("-");
		System.out.println(message);
		System.out.println();
		doAction();
		System.out.println();
	}
	
	protected abstract void doAction();
}
